/*
 * @Author: jhy
 * @Date: 2024-07-21 18:30:47
 * @LastEditTime: 2024-08-26 11:09:59
 * @LastEditors: jhy
 * @Description: 
 * @FilePath: /yiyu/szzjzc/src/router/index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router' 

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'indexpage',
    component: () => import('../views/indexpage.vue'),
  }, 
  {
    path: '/homepage',
    name: 'homepage',
    component: () => import('../views/homepage.vue'),
  }, 
  {
    path: '/productDetail',
    name: 'productDetail',
    component: () => import('../views/productDetail.vue'),
  }, 
  {
    path: '/activeDetail',
    name: 'activeDetail',
    component: () => import('../views/activeDetail.vue'),
  }, 
  
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
